/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved.
 * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.domain.bean;

import java.util.Date;

import com.smarthome.domain.bean.base.BaseDomain;

/**
 * @author dhc
 * @date 2015年9月23日 下午6:30:30
 * @title ShResidenceFee
 */
public class ShResidenceFee extends BaseDomain {
	private static final long serialVersionUID = 1L;

	private Long id;
	private Long residenceId;
	private String name;
	private Long baseFee; // 基础费用 （元/平方米） 以分为单位
	private Long otherFee;// 其他费用（元/每月） 以分为单位
	private String remark;
	private Date gmtCreate;
	private Date gmtModify;
	private Long active;

	// ---其他字段
	private Double showBaseFee; // 用于展示
	private Double showOtherFee; // 用于展示数据

	public ShResidenceFee() {
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getResidenceId() {
		return residenceId;
	}

	public void setResidenceId(Long residenceId) {
		this.residenceId = residenceId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getBaseFee() {
		return baseFee;
	}

	public void setBaseFee(Long baseFee) {
		this.baseFee = baseFee;
	}

	public Long getOtherFee() {
		return otherFee;
	}

	public void setOtherFee(Long otherFee) {
		this.otherFee = otherFee;
	}

	public Double getShowBaseFee() {
		if(null != this.baseFee){
			showBaseFee = baseFee / 100d;
		}
		return showBaseFee;
	}

	public void setShowBaseFee(Double showBaseFee) {
		if(null != showBaseFee){
			this.baseFee = (long) (showBaseFee  * 100);
		}
		this.showBaseFee = showBaseFee;
	}

	public Double getShowOtherFee() {
		if(null != this.otherFee){
			showOtherFee = this.otherFee / 100d;
		}
		return showOtherFee;
	}

	public void setShowOtherFee(Double showOtherFee) {
		if(null != showOtherFee){
			this.otherFee = (long) (showOtherFee* 100);
		}
		
		this.showOtherFee = showOtherFee;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	public Long getActive() {
		return active;
	}

	public void setActive(Long active) {
		this.active = active;
	}

}
